package com.shop.entity;

import java.util.Objects;

public class GoodsTypeVO {
    private int gd_id;
    private int gfour_id;
    private String gfour_name;

    public GoodsTypeVO(int gd_id, int gfour_id, String gfour_name) {
        this.gd_id = gd_id;
        this.gfour_id = gfour_id;
        this.gfour_name = gfour_name;
    }

    public GoodsTypeVO() {
    }

    public int getGd_id() {
        return gd_id;
    }

    public void setGd_id(int gd_id) {
        this.gd_id = gd_id;
    }

    public int getGfour_id() {
        return gfour_id;
    }

    public void setGfour_id(int gfour_id) {
        this.gfour_id = gfour_id;
    }

    public String getGfour_name() {
        return gfour_name;
    }

    public void setGfour_name(String gfour_name) {
        this.gfour_name = gfour_name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsTypeVO that = (GoodsTypeVO) o;
        return gd_id == that.gd_id &&
                gfour_id == that.gfour_id &&
                Objects.equals(gfour_name, that.gfour_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gd_id, gfour_id, gfour_name);
    }

    @Override
    public String toString() {
        return "GoodsTypeVO{" +
                "gd_id=" + gd_id +
                ", gfour_id=" + gfour_id +
                ", gfour_name='" + gfour_name + '\'' +
                '}';
    }
}
